Building Customized Async Web Protocol from AsyncIO (Python): Exploring the low-level APIs Protocol and Transport
#PyCon_APAC_2022
https://tw.pycon.org/2022/en-us/conference/talk/261
Chinese talk w. English slides
https://docs.google.com/presentation/d/1OEAJF6cP_m62QMiprRzWEg6jOclR-kHdLl8g9hk9iZw/edit?usp=sharing
https://github.com/qwp8510/simple-websocket-protocol
WebSocketのプロトコルを実装!(asyncioのProtocolとTransportを使って)
asyncioの高レベルAPIから始めて低レベルAPIを導入するトーク
Protocol
https://docs.python.org/ja/3/library/asyncio-protocol.html#protocols
asyncio はネットワークプロトコルを実装するために使う抽象基底クラス群を提供します。
トランスポート と組み合わせて使うことが想定されています。
Transport https://docs.python.org/ja/3/library/asyncio-protocol.html#transports
さまざまな通信方法を抽象化するために asyncio が提供するクラス群
echo example(client / server)からはじめ、websocketの実装をwalkthrough